<template>
  <page-header-wrapper>
    <a-card :bordered="false" class="seal-manage">
      <h3 class="title">印章管理</h3>
      <div class="seal-manage-list">
        <ul>
          <li>
            <span>默认</span>
            <img :src="imgvalue" alt="" />
            <p>电子公章</p>
          </li>
        </ul>
      </div>
    </a-card>
  </page-header-wrapper>
</template>


<script>
import { getSeal } from '@/api/news'
import { getProtocol } from '@/utils/publicFun'
export default {
  data() {
    return {
      imgvalue: null,
    }
  },
  mounted() {
    this.getcomSeal()
  },
  methods: {
    // 获取企业印章
    getcomSeal() {
      getSeal({})
        .then((res) => {
          console.log(res)
          if (res.company_seal) {
            // this.imgvalue = process.env.VUE_APP_API_BASE_URL2 + res.company_seal
            this.imgvalue = getProtocol() + res.company_seal
          }
        })
        .catch((err) => {
          console.log(err)
        })
    },
  },
}
</script>



<style lang="less" scoped>
.seal-manage {
  background: #fff;
  .title {
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    span {
      font-size: 12px;
      margin-left: 10px;
      color: #999;
    }
  }
  &-list {
    ul {
      li {
        width: 200px;
        padding: 20px 30px;
        border: 1px solid #eee;
        position: relative;

        span {
          color: #fff;
          display: inline-block;
          padding: 5px 15px;
          background: #4b4949;
          font-size: 12px;
          position: absolute;
          top: 0;
          right: 0;
        }
        img {
          width: 147px;
          height: 147px;
        }
        p {
          text-align: center;
        }
      }
    }
  }
}
</style>